<?php


namespace App\Model;


use Illuminate\Database\Eloquent\Model;

/**
 * App\Model\Cms
 *
 * @property int $id
 * @property string $category 文章类型
 * @property string $title 标题
 * @property string|null $content 内容
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms whereCategory($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Cms whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class Cms extends Model
{

    public static $types = [
        self::TYPE_ABOUT_US,
        self::TYPE_CONTACT_US,
        self::TYPE_TERMS,
        self::TYPE_PAYMENT,
        self::TYPE_REFUND,
        self::TYPE_SHIPPING,
        self::TYPE_FAQ,
        self::TYPE_DMCA,
        self::TYPE_RETURN,
    ];

    public static $options = [
        self::TYPE_ABOUT_US => 'About Us',
        self::TYPE_CONTACT_US => 'Contact Us',
        self::TYPE_TERMS => 'Terms and conditions',
        self::TYPE_PAYMENT => 'Payments Pricing',
        self::TYPE_REFUND => 'Returns & Refunds',
        self::TYPE_SHIPPING => 'Shipping',
        self::TYPE_FAQ => 'FAQ',
        self::TYPE_DMCA => 'Dmca',
        self::TYPE_RETURN => 'Return',
    ];

    const TYPE_ABOUT_US = 'about_us';
    const TYPE_CONTACT_US = 'contact_us';
    const TYPE_TERMS = 'terms';
    const TYPE_PAYMENT = 'payment';
    const TYPE_REFUND = 'refund';
    const TYPE_RETURN = 'return';
    const TYPE_SHIPPING = 'shipping';
    const TYPE_FAQ = 'faq';
    const TYPE_DMCA = 'dmca';

    protected $fillable = ['category'];

}
